
import VueRouter from 'vue-router'




import HomeContainer from './components/tabbar/homeContainer.vue'
import memberContainer from './components/tabbar/memberContainer.vue'
import shopCarContainer from './components/tabbar/shopCarContainer.vue'
import searchContainer from './components/tabbar/searchContainer.vue'


import NewsList from './components/news/NewsList.vue'
import newsInfo from './components/news/newsInfo.vue'

import photoList from './components/photos/photoList.vue'
import photoInfo from './components/photos/photoInfo.vue'

import goodsList from './components/goods/goodsList.vue'
import goodsInfo from './components/goods/goodsInfo.vue'

import goodsDesc from './components/goods/goodsDesc.vue'
import goodsComment from './components/goods/goodsComment.vue'


var router = new VueRouter({
    routes: [
        {path: '/', redirect: '/home'},
        {path: '/home', component: HomeContainer},
        {path: '/member', component: memberContainer},
        {path: '/shopcar', component: shopCarContainer},
        {path: '/search', component: searchContainer},
        {path: '/home/newslist', component: NewsList},
        {path: '/home/newsInfo/:id', component: newsInfo},
        {path: '/home/photolist', component: photoList},
        {path: '/home/photoInfo/:imgid', component: photoInfo},
        {path: '/home/goodslist', component: goodsList},
        {path: '/home/goodsinfo/:id', component: goodsInfo, name:'goodsinfo'},
        {path: '/home/goodsdesc/:id', component: goodsDesc, name:'goodsdesc'},
        {path: '/home/goodscomment/:id', component: goodsComment, name:'goodscomment'},

    ],
    linkActiveClass: 'mui-active',   //覆盖默认的路由高亮的类，默认的类为 router-link-active

})
export default router